home *** CD-ROM | disk | FTP | other *** search
- C# Demo of a Simple Grep tool for C#Builder
- -------------------------------------------
-
- This example demonstrates a simple none recursive grep tool:
-
- Development topics demonstrated in this example include:
-
- 1) How to use a regular expression for text line matching.
- 2) The usage of "text changed" and "key event" handlers for text boxes.
- 3) How to do context depending enabling/disabling of a button.
- 4) One possibility of the directory/file dialog usage.
-
- Possible excercises for enhancements are:
-
- - adding recursive directory/file processing
-
-
- Compiling the demo
- ------------------
-
- Open the project group file Grep.bdsgroup and then build the project.
-
- Running the demo
- ----------------
-
- Run Grep.exe.
-
- Select inside a directory an appropriate source file (for example one
- with a csharp extension) and type into the search field some search text,
- or a regexp search pattern. Press the "Do Grep" button or use the <enter>
- key from inside any text field to perform the grep.
-
-
- Valentino Kyriakides
-